package com.mxpio.erp.common.plm.service;

import com.mxpio.erp.common.plm.entity.ProjectInfo;
import com.mxpio.erp.common.plm.entity.ProjectProblem;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.security.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 *  项目问题库
 * @author qb
 * @date 2024-2-20
 * @since 1.0.0
 */
public interface ProjectProblemService extends BaseService<ProjectProblem> {

    /**
     * 保存任务问题信息
     */
    ProjectProblem saveProblem(ProjectProblem projectProblem);
    /**
     * 任务问题处理
     */
    ProjectProblem dealProblem(ProjectProblem projectProblem);
    /**
     * 任务问题处理审核
     */
    void problemAudit(ProjectProblem projectProblem);

    /**
     * 我负责的问题
     * @param page
     * @param criteria
     * @return
     */
    Page<ProjectProblem> listPageHead(Pageable page, Criteria criteria);

    /**
     * 我审核的问题
     * @param page
     * @param criteria
     * @return
     */
    Page<ProjectProblem> listPageAudit(Pageable page, Criteria criteria);

    void problemAuditNo(ProjectProblem projectProblem);
}
